import Vue from "vue";


//1.导入路由
import VueRouter from 'vue-router'
//2. 激活路由--安装路由
Vue.use(VueRouter);

import one from "./commmet/tetrad/01.vue";
import two from "./commmet/tetrad/02.vue";
import three from "./commmet/tetrad/03.vue";
import four from "./commmet/tetrad/04.vue";

import news from "./commmet/cniues/new.vue";
import new02 from "./commmet/cniues/new02.vue";
import PictureL from "./commmet/cniues/PictueL.vue";
import PictueLing from "./commmet/cniues/PictueLing.vue";
import commodity from "./commmet/cniues/commodity.vue";
import comtyone from "./commmet/cniues/comtyone.vue";
import particulars from "./commmet/cniues/particulars.vue";
import particulars2 from "./commmet/cniues/particulars2.vue";
// 3.创建路由对象
var router=new VueRouter({
    routes:[
        {path:"/", redirect:"/one"},
       {path:"/one",component:one},
       {path:"/two",component:two},
       {path:"/three",component:three},
       {path:"/four",component:four},
       {path:"/one/new",component:news},
       {path:"/one/new02/:id",component:new02},
       {path:"/one/PictureL",component:PictureL},
       {path:"/one/PictueLing/:id",component:PictueLing },
       {path:"/one/commodity",component:commodity},
        {path:"/one/comtyone/:id",component:comtyone},
        {path:"/one/particulars/:id",component:particulars ,name:"particulars"},
        {path:"/one/particulars2/:id",component:particulars2,name:"particulars2"},
    ],
    //修改路由高亮的类
    linkActiveClass:"mui-active"
})


export default router;